Some time ago, I got a Pixel 4a and I tried the stock ROM. After a while, I decided to try LineageOS, which also worked; I also experimented with root etc.
But then I tried putting postmarketOS (now known as Nura) on it. Their installer isn't supported officially on macOS, so I tried using OrbStack to install postmarketOS. It didn't work, so then I tried using AI to maybe install it manually (not proud of it; I have another laptop which has Linux on it now but it had Windows before and when I tried installing postmarketOS I probably didn't have Windows backed up so I didn't install Linux yet), but that broke things even more.
I tried restoring to the stock ROM, which worked, including recovery and fastboot, but booting into Android didn't work. My friend fixed it though. The stock ROM was working again.
I also wanted to try LineageOS, but I forgot to update the stock ROM in Android settings, so I broke it again... Then I restored to the stock ROM once again, and, it's basically the same as it was after flashing the stock ROM after trying postmarketOS.
If I make the slot bootable again (as I tried booting it several times so it made the slots unbootable) with fastboot set_active a and then rebooting with fastboot reboot it's able to show the Google logo, then it shows it again but with different colors and then changing the Google logo into a G, along with "Powered by Android" appearing at the bottom of the screen. It's supposed to show a progress bar under the G logo after some time, but it doesn't on my 4a, and instead reboots and goes into fastboot after 3 attempts.
I've tried some things but they didn't work. If you know how to fix the stock ROM, please let me know! It's the latest factory image.
Thanks in advance.