Chinmaya This happens when you force certain camera parameters (brightness, contrast, ISO, WB and others).
The file gets corrupted and you can’t edit or delete it.
The only solution I’ve found is to connect the phone to a PC, open the DCIM/Camera folder, look for the files named “.pending‑xxxx..” (they’re the first ones you’ll see) and delete them.