A weak swishing 7 is pretty obvious you need to get higher into the pocket.
The flush/stuffed seven is the ball just slightly too high in the pocket. The head pin is driven back catching the 2 pin too much on the right side. The 2 is then lifted up and driven into the front of the 4, the 4 goes back right of the seven and the 2 goes airborne up and around the neck of the 7.
The other cause can be the pins slightly off spot.
More speed, slight adjustments with feet, line, ball, etc to get away from the high flush hit. But that leaves you open to more weak 10’s and swisher 7’s.
But generally you don’t leave to many and is hard to adjust away from so I chalk it up to one shot that just didn’t carry.