Zend certified PHP/Magento developer

Windows 10 gets stuck on loading circle if ultra fast boot is disabled in bios

So this problem randomly appeared some time ago, where my pc would not boot and the windows 10 boot circle would infinitely spin in a stuttering way. I finally found the fix: enabling ultra fast boot in bios. It was all working fine, but now after about 6 months when i reset windows, my pc started having startup problems. It usually boots up only after the second try (First try it shows a black screen and turns off and second try turns on like nothing happened), yesterday after it started up, shortly after i opened my apps it crashed (bsod) with code “MEMORY_MANAGEMENT”. Second time it boots after that crash, it throws another bsod “KERNEL_SECURITY_CHECK_FAILURE”. After that, it all worked fine. Now this may seem like a ram issue, but it can’t be, because i ran so many ram tests for many hours with zero errors. So i tried disabling ultra fast boot, but the infinite circle spin appeared again. I am so pissed, no information about this anywhere on the web, maybe someone can help? I’ll provide my specs below:

Ryzen 5 3600

Gigabyte GTX 1660 super

Xpg D60G 32GB (4x8gb) 3200 mhz ram

Asrock b450 gaming k4 motherboard

Xpg sx8200 pro pcie gen 3 m.2 ssd 500gb