It seems that the motherboard is dead, and that it’s a common issue with the 5a
Where did you get it? Can you ask for warranty and get it replaced?
Frankly speaking if you’re looking to de-google and have a secure experience (including re-locking the bootloader and having everything signed and encrypted) then your only option is GrapheneOS + Pixel phones.