Ok…. it was wrong example and wrong diagnosis i think.
Plz try any other page instead of home page. For example:
https://promodels.pl/ola-rudnicka-dla-elle-poland-marzec-2016/amp/
When I try to test those pages with: https://search.google.com/test/amp it shows everything is ok (!). But GSC in the same time gives info about hundred amp pages with error!
“On page is JavaScript code created by user (Critical)
Remove custom JavaScript code. Non-JavaScript custom AMP pages can appear in Google search results without AMP-related display”
(translated from polish with google translate ;))
Do You have any idea what is the problem?