Hello,
Contact your hosting support to get help with the increase of SubstituteMaxLineLength. As a rule, this limit caused the 500 error of the Customizer. To be 100% sure provide us with the server error logs. There should be the error that explains what limit is reached.
Regards