If I ask amp-script to load a script that's larger than 150,000 bytes, it gets blocked. Which is in line with expectations! But I also see an error in the Console:
Uncaught (in promise) TypeError: Cannot set property 'onerror' of null at amp-script.js:276
Looks like workerDom is null in the code here.