RMD 2023 messed up?

In May 2023, I withdrew an RMD from an Inherited IRA account and transferred it to an Inherited non-IRA account. I am thinking this may have been a mistake, and I would need to pay double tax  - once on the transfer out of the inherited IRA in 2023, and again in a future year when that money is withdrawn from the inherited non-IRA. How can I fix this in 2023? Should I transfer back the money into the Inherited IRA to 'reverse' the withdrawal, and then withdraw the RMD by transferring it to a non-inherited account? Or can I just withdraw the funds now in the non-IRA inherited account and not be required to report that to the IRS in 2023?   Thanks for any advice