- Kernel 5.12 is EOL so please install both 5.4 and 5.10 LTS (Long Time Support) and see which one of the two troubles you least.
- You probably upgraded your RAM recently and forgot to adapt the swap file, so please read this too although it’s unrelated to your problem.
- Your UEFI firmware looks really old. Check your manufacturer’s website for a “BIOS update” or a “Firmware update”.
Please read this too: