Hi @Vishakhan K
I understand that a file is being deleted therefore detected as Malware from server 2019? You said there is a shared image, which I am unable to see?
Below are some steps you can follow to exclude the folder from Microsoft Defender for Endpoint and Microsoft Defender Antivirus