Is there a way to repair a corrupted AUP3 file?

Yes. See the first post here: Corrupt or Otherwise Broken Audacity Project Recovery