Occasionally when sprinting until out of stamina, the bar will refill but it will stay red and not let you sprint at all until you gain energy by eating/sleeping/etc. In this screenshot, I should have plenty of stamina to sprint some, but it won't let me. As soon as I ate something, the stamina bar turned its normal color and I could sprint again.
I'm reporting this for Steam and the current version, but I've had this on Switch in the past as well. It's just been several months since I've played my Switch save so I can't make any guarantees about versions and whatnot.