i think its upset because it had config thats tied to a card that doenst exist
long shot but have you tried a fresh backup ( of the CX) and then an immediate restore)
backup restores normally purge data thats not valid ( long shot because you have sort of done that already)
only other think i can think of is export the forms , clear database and import them again manually