3D printer Z height


I wanted to ask for opinions about my 3D printer’s Z height. In theory, it could print up to 600 mm (it does not have a Z endstop switch) however it freezes completely after awhile. What can be the problem? Should I change my Raspberry Pi or the mainboard?

Thank you in advance.