Photoshop works fine but showing and error when closed

Why this problem is regularly happened to me. Every time I close my Adobe Photoshop even if I didn’t do anything on the application, the problem occurs. This was not happened before, It was just happened a few days ago and I can not fix the problem. It says Program Compatibility Assistant, This program might not have installed correctly. Could you please tell me where this problem comes from?

Program Compatibility Assistant – This program might not have installed correctly. If this program didn’t install correctly, try reinstalling using settings that are compatible with this version of Windows.
I have also tried reinstalling the program but the problem still persists. The application works fine, only that error occurring when closing the application.
