Ok. Before you do that, try to use adb to format system, data, and cache. That's your best bet. It will completely wipe every trace of any old rom code out. You can search for instructions on how to do that on the forum.
AFter that's done, try installing a stable ROM and see how that goes.