I believe I spotted the bug and it will be fixed in the next update!
In the mean time, if you press Y again, it should "re-select" the melee weapon and work
Thank you! But now, even if I press Y again to reselect the melee weapon, pressing X does nothing–I can't attack until I switch to another weapon such as pistol.