Was building a narrow underwater tunnel with a lot of twists and turns. Used slabs and stairs for decoration to make it look more interesting. Swimming quickly through it is a pain as I keep getting spat out of the sprint animation and have a jittery camera from switching in and out of sprint constantly.
Attached is an image of the tunnel in question.
Environment
Swimming between 1.5 or narrower block gaps underwater that have waterlogged slabs or stairs causes the player to stop sprint swimming and have to reactivate sprinting.
Does MC-148933 describe your issue?