When starting sprinting (initiated either via double-W or via briefly pressing control), and then just holding forwards, the player will automatically stop sprinting after about 30 seconds. Video too large to upload here, but confirmed to be present on current main branch head f022d15 in clean dev build
MC-4839
I believe this is a good candidate for getting a fix via this mod.