I did got the problem with my printer as well. I used Cura and tried to mix something up in the Extensions -> post processing -> modify g-code. While adding the script "change AtZ..." or "filament change" (I cant remember correctly), the phenomena is exactly like what you describe. After I removed the script, everything work normally. Maybe you should check this option. Sorry for my bad English.