Do you believe smaller countries have a right to self determination or should be in thrall to larger neighbours in perpetuity? Treaties can’t be replaced or unions broken? You don’t seem to have a high opinion of Scotland so why the determination to deny independence?
EU law arguably always had primacy over UK law
https://europa.eu/european-union/law/legal-acts_en
See Factortame at al
https://en.wikipedia.org/wiki/R_(Factortame_Ltd)_v_Secretary_of_State_for_Transport
Scotland's separate legal system is enshrined in the Treaty of Union.
Edit in italics