Hello @Morten Tollefsen ,
Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.
I would suggest you check if the GPO “Interactive logon: Machine inactivity limit” is enabled in that environment? If yes, please try to disable it/set it to 0.
Please also check, if old/new VMs really have the same GPOs applied and are both on the same OS version level.
Hope this helps!
--please don't forget to upvote and accept as answer if the reply is helpful--