Same problem Here.
i use only AMP official Plugin By Automattic.
If you use the rewrite webp, it moved the </head> just before the <body> and this causes error.
How can I disable the ewww fully inside the amp pages?
You can see it here in any article by placing / amp at the end.
https://playstationitalia.it/