Error: jtag status contains invalid mode value - communication failure
If you remove R, you must use the “software system reset”, not the “connect under reset” since you cut the track so nothing connected to Reset of STlink.
But it is preferable to connect Reset if you have an appli using SWD pins, you won’t be able to reconnect if Reset is not connected from STLink.