DiagnosticsError codes
M0019 internal compiler error
marmot failed on a valid program.
This is a bug in marmot, not in your code. The report bundle has what is needed to reproduce it.
The fix
Report the bug with the bundle. As a workaround try -O 0, or MARMOT_TIER0=0.
See also all error codes and marmot explain.