[SOLVED] Recurring Datapack Broke my world

So I made a stupid mistake and accidentally made a function that called itself. The server I was running it on now keeps saying "Can't keep up! Is the server overloaded? Running 12143ms or 242 ticks behind" and if I try opening the world in singleplayer it gets stuck at 100%. I have tried removing the datapack but it hasent changed anything. I know it was a stupid mistake and I should have had a backup but please help, I've been working on this world for a while now and I really don't want to loose it
Continue to help post