Switching and porting from Arduino Mega to Teensy 4.1

No typically you cannot store directly executable code in SD, but you haven't said what you're trying to do, or how you're trying to do it, but

suggested to me (perhaps wrongly) you were trying to code the display in software, rather than interpreted stored data.