So I built a bartering farm and have a auto clicker setup to run it, but after a few swipes at these guys the no longer get hit even when im very clearly looking at them, it happens no matter where I look, it will be good for like 5 hits and then I have to move my mouse the tinniest bit and it works again, anyone know whats causing this? making it impossible to afk

Java 1.21.10
Weird issue on Java