The bug
The player goes into swimming mode when he has only one block of top available, even if he is not in water.
How to reproduce
Put yourself below pistons
Activate the pistons to push the blocks above your head
With only one block up, your player will automatically switch to swimming mode, even if he is not in water
Example
Here is an example in video:
[media]Additional context
This bug is due to the correction of MC-90594 and MC-146332 in the 19w14b snapshot.
Duplicate of MC-147612. Please use the search function before reporting.