First of all, it is a good practice to export a copy of your GEDCOM file after each time you make a major edit (or maybe just each time). That way you can "restore from backup" if you need to.
But there are programs that let you manipulate GEDCOM files in various ways. For what you need, search for "Split GEDCOM file" and you should get some options.