Allāh has already ordained for you [Muslims] the dissolution of your oaths.1 And Allāh is your protector, and He is the Knowing, the Wise.
Translation: Saheeh International (English)
1 By means of a kaffārah (expiation). This is required when one is unable to fulfill an oath or when one has taken an oath which would not be pleasing to Allāh (subḥānahu wa taʿālā). See 5:89.
Verily, Allah has legislated for you to break your oaths by giving expiation if you find something better than the oaths your took or if you go against them. Allah is your helper and He is The Knower of your circumstances and what is best for you; He is The Wise in His legislation and decree.