Mark IV is unfortunately a literal PC computer hiding in the piano. So here's two thoughts:
1) The HDD spinning disk hard drive that is the Operating System, is now 2 decades old, and way past its life expectancy. In 2020 I was only able to get a whole configured PC replacement, and it took about 6 moths; they did not at that time offer just the HDD, which is the necessary part.
It's very possible that the drive is not yet completely failed, and will boot the computer computer, but then it hits bad sectors etc and the OS freezes a few minutes after boot. I spoke with Ryan Ellison rellison@yamaha.com about this, and he says the HDD should be available. If you haven't assembled a PC before, you might want to sub-contract with someone to install the replacement HDD, if it's available. Better yet, get them to convert it to an SSD and save a disk image of the file for future repairs, since all Mark IV's will have this problem eventually.
2) There is a power supply issue with Mark I and II, but I'm not sure if it extends through III and IV. Basically, an IC fails that was produced exclusively for this power supply, so the unit doesn't fully turn on, or at all, and it cannot be repaired without that IC. Those IC's ran out in 2019-ish, but Yamaha ordered a new batch and TAP Electronics in Buena Park will perform the repair. It's about $650 last time I had it done. They supposedly repair the problem that causes the failure, as well as install the IC. That IC is not directly available for purchase, so you can't do the PCB repair yourself, which is not a piano tech skill anyway. This is probably not the issue though, most likely the hard drive.
Good luck...
------------------------------
Robin Whitehouse
Greenbelt, MD
------------------------------