better to leave it as it is and run in ide sata controller mode to get all the ram available
I would have done that compromise (actually wanted to use the SATA RAID option, not AHCI, but the computer fails with RAID too, same/similar error), except for the fact that with IDE, the computer crashes unpredictably on disk read-write.

Is there a way to be able to use all of the RAM?