Isn’t granting the ECJ jurisdiction is a requirement of EU membership?
Germany [1] and Hungary [2] played with this fire. In summary, no.
Treaties have force of law. If a country improperly ratified their EU treaties, they need to amend their constitution (if it exists) or admit they never properly joined the EU in the first place. Given the latter means economic collapse for most EU members, it’s not a hard choice.
[1] https://www.jurist.org/commentary/2020/06/nick-kenny-german-...
[2] https://www.reuters.com/world/first-eu-seen-moving-cut-money...
No country is or can be forced to be a EU member.
Just because there are economic implications does not mean the EU treaties are above the countries‘ constitutions the people actually chose to enact.
Likewise, for most of my life, my personal political and economic interests included a strong UK (still does even though I moved to Germany) and USA even though I never lived there.