What are the ways scholars use to remember loads of information from the chain of narrators to a hadith, to the risele Ameliyye, to everything else?

It is mainly light placed in their hearts from Allah (swt). To have strong memory is possible and a number of recommendations exist.

Please check this link