[Tested in singleplayer only]
If the player dies before picking a trident, it cannot be picked up later. If the trident has loyalty, upon the player's death, it will turn into an item regardless of position or state.
Closing and reopening the world allows the trident to be picked up again.
Can confirm; however loyalty tridents turning into items may be intended according to Dinnerbone in this reddit comment.