IBD never ends, keeps reverting back

You shared only a small part of your logs, so is hard to have a diagnostic.
If you have a bad internet connection, I suggest you to take in consideration this guide, for a hybrid mode clearnet + Tor. At least for the IBD.