Getting a Validity Check error message repeatedly when saving file

I’ve had the same problem but what Dan Rathbun posted worked perfectly for me so thanks!