If you are holding a goat horn (sing is the one I used) and blow it, it will be on cooldown for a few seconds. During this time, you can't interact with any blocks (such as doors, chests, crafting tables etc). It seems like it is cancelling the Interact Event for some reason.
Environment
Windows 10 Pro
Java version 17
See attached image for F3 debug screen
This report is invalid as your game was modified when experiencing this issue. In the screenshots you've provided, you're playing on a "spigot" server, and bugs are only valid if the behavior is reproducible under complete vanilla circumstances.
As an additional note, I cannot reproduce this behavior in 1.19 or 22w24a.