So, since I suspected the motherboard was bad I decided to check for broken or bend pins. Luckily, everything seemed ok.
I was also thinking about problems with the drivers but then I got the idea to change the monitor.
It all works fine now! I rebooted several times and didn’t see anything...