The error message suggests you are declaring huge arrays in RAM. Such a strategy works on PCs with virtually unlimited memory, but not microcontrollers.
Change the used algorithms to get along with the resources the MCU has.
I never once had an embedded project were the project management picked the largest and most expensive controller, just to allow for simplest coding.