@Roncham weird. try this

pm2 stop all cd ~/MagicMirror export ELECTRON_DISABLE_GPU=1 npm start

wait and see if the errors occurs

if not

add the export line to the script that starts mm
in front of the npm start

if you used my install script, that is
~/MagicMirror/installers/mm.sh