Ask an Immigration Solicitor. Get an Answer ASAP.
Thank you for enquiry, it has been forwarded to me to see if I may of any assistance.
Unfortunately, if you were to divorce or enter into a formal separation agreement this would affect your right to remain in the UK on the spousal visa. You may also be affected if your partner were to contact the home office to say that you were no longer in a relationship even if you were not "formally divorced".
Although things may be difficult at this time, I would strongly advise against getting a divorce or formally separating until after you have obtained your indefinite leave to remain in the UK. Based on the information provided, you may be able to apply for this visa after having been on the spousal visa for five years.
I hope this answers your question if so kindly rate my answer positively so I can get credited for my time. If however you feel that the answer does not cover all the points raised in your question please DO NOT rate my answer negatively I will be happy to answer further question until you are satisfied with my answer.Kind regards