One could manually play with the topic file to get it back into some sort of order... but that only occurs when the topic itself has simply become corrupt. The problem you are experiencing occurs due to memory limits on the server, not corrupt topics. Even upgrading to the last 5 series, 5.47e, might fix this...
--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!