For anyone who encounters the same error, switching BIOS chips and reflashing didn't help - I think my board has a hardware issue after many cold sessions. Secure boot / UEFI is broken, my workaround was to install an MBR version of Windows 10, after that everything worked. The BIOS flashback button is also broken, not sure if related.