My work laptop has a similar fix for when it keeps memory learning forever. You have to unplug the battery completely and press the power button a few times and the next reboot it works again. Had to do this quite a few times until I learned you can enter the advanced settings in the bios to change the memory timings by adding a variable to the uefi partition. It has official memory modules, still keeps learning forever...