Yes, if your marriage breaks down, you'll be allowed to stay as the parent of a UK citizen (as legally you are not allowed to leave the UK with your children without the UKC's approval).
Big hugs. Any chance the marriage can be saved? If so, I would apply for FLR(M) and then pursue the family route at a later time.