It does happen sometimes when in the shallow area of the water. It also may be affected by camera angle.

I personally set a second keybind to the Numpad Up (8) button, in /keybind

Flying/Diving Descend: NUM8