WieWaldi Thank you for your very detailed observation. Based on what you mentioned and what I see rewatching, it is quite possible that what I thought I was doing and what I actually did were different. I do need to investigate those spots closely. And video is such a great tool here because I can play it in slow-mo or even advance frame by frame to pinpoint what's going on.
I think I am making the beginner mistake by rushing my pedal motions, just like @MRC said. So even I intend to put the pedal down after playing the notes, or lift pedal up as I play the changed chord, my foot was too eager and moved early.
There was only one place that I did not rush the pedal, which is what you noticed in the last phrase.
Pedal mark begins at the E but I only pushed it down around the second beat of measure 27. Not intentional, but more likely because I was flustered by the end of measure 26 so my brain need to take a breath. But the effect turns out to be exactly as the score intended.