Resource being edited by another user, but same user trying to open resource

This is a known issue, restarting the gateway solves this.

Here are a couple refrence posts should you want to read through them:

Anyone have problems with project mutating after save? - General Discussion - Inductive Automation Forum

Phantom Designer Sessions - Ignition - Inductive Automation Forum