So, i'm having this issue for a fill weeks now, nothing i saw helped me in any way.
I had W10 with no problems, but out of nowhere it begin to give a black screen after bios, it only booted on safe mode. So i did a clean install first with a bootable pen drive from RUFUS. After install i get one good boot, and then just black screen after bios. Tried using the windows media creation tool, get the intallation completed, get that one good boot, and then black screen after BIOS. Gave up on W10, tried W11, same thing, one good boot after install then black screen. Mind you i tried that on 2 differente HD, tried on a SSD but the SSD does not appear as a boot option on my bios with windows, funny thing, i put ubuntu on that SSD and it appears AND boots normally. Ubuntu in any of the two others HD's also boots normally. I've been using this pc with the same windows install for the past five years without having to do a clean reinstall.
Things i tried alrealdy, on W10 and W11:
Windows installations were made with just the bootable pen drive and the single HD connected
Different HDMI and even monitor
GPU is working fine
Both RAM already tested and working fine
Reseted the BIOS
Tried the automatic repair from windows media
Tried booting with CSM and without it, tried fast boot enable/disabled, tried secure boot enabled/disabled
Already did a complete CHKDSK on both HD, it fixed the issues alright, but still getting black screen Tried fix BOOT MBR on both HD, tried DISM and SFC sollutions on both HD, it fixed issues, but still black screen
I have a TUF-H310M PLUS Motherboard
2 16GB Ram
RX 5600-XT GPU
Intell i3 9 generation CPU
Mind you, five years worked fine with no hardware changes.