The bug
With a high luck attribute, fishing stops creating items for the player.
If using Luck Of The Sea, the value required to trigger this bug lowers.
How to reproduce
Set luck to high value “/attribute @p minecraft:luck base set 100”
Use Fishing Rod and time correctly
No item is received
This only happens in places where treasure can’t be obtained from fishing (26.1.2).