If you published your mod, the files become read only until you delete the published .pak file from My Documents/Larian/Mods.

If you change the name of your mod midway through working on it, that will also cause issues in editing.

If your editor path and divinity path are set up wrong in the preferences, that'll cause issues too, but that's the least likely of your problems.