Printer misaligns when printing with a bit of height

Got a broken printer free, i was able to make it work and i was able to start printing, i started with simple things and started going to movable parts like the famous dragons etc, but then i tried this cute hermit crab and then it happened… everytime the base and movable parts were ok and reaching a bit of height it broke down, i did it multiple times and it was the same.
So, in short, after trials after printing over a certain height the Z misaligns, and i need to recalibrate everything. After trying to fix this with little things reading around the internet now is giving the problem in even lower height.
How would i adress this ?
picture of a box lid that was fine and a rectagle to put in the box, after a certain height it broke like the crab

Hermit crab with movable parts and when reaching a certain height it broke down

Welcome to the forum.

This is a widespread issue that effects nearly every brand/model printer.

See this thread. There are many others if you search.