An unexpected error occurs when a player teleports to the dimension that contains the entity with the same UUID as the player
The bug
When a player teleports to the dimension that contains the entity with the same UUID as the player, repeated fatal errors occur.
How to reproduce
/execute in minecraft:overworld run teleport 0 0 0
/execute in minecraft:the_nether run forceload add 0 0
/execute in minecraft:the_nether run summon minecraft:item_frame 0 0 0 {UUID: α, Fixed: true}(Replace α with the player's UUID)
/execute in minecraft:the_nether run teleport 0 0 0
→ An unexpected error occurred trying to execute that command(class bed cannot be cast to class aaw (bed and aaw are in unnamed module of loader 'app'))