You can remove the pecker but then, another fish might start doing the pecking. See if you can figure out which is the troublemaker and separate it for a while. Sometimes adding more fish works but that depends on tank size.
Yes so I have a 20 gallon tank. Two of them are very territorial and don’t let any other fish come in their territory so I suppose it could one of them.