I mean OK, but its also Lamar. He's taking a lot of hits in a game because he wants to take a lot of hits in a game.
Its odd for people to take the stance of "I want our Oline to be perfect in pass protection", and then be promoting Lamar staying in the pocket longer to let plays to develop, holding the ball longer than he should, and ultimately scrambling and getting 10-15 carries a game.
The five guys blocking for him aren't the only people responsible for the hits he takes.
i think there's something to be said about the kinds of hits you take in those different scenarios
lamar doesn't take a lot of damage as a runner because he protects himself well and is control
all qbs in the pocket are much less prepared to take hits and a lot of QBs pick up injuries and niggles in the pocket after qb hits and sacks because you're not naturally in a position to protect yourself when you take the contact
every injury lamar has got that's taken him out of the game so far in his career has come as a passer so the carries part of this seems ultimately not that important
the scrambling for sure increases the chances of getting hit - but a better OL makes pressure more predictable - it's easier to identify pre-snap where it might come from and if you have trust in your tackles (because they're good) then you have reliable escape routes out of the pocket for your scrambles
it's true that sacks are as much a QB stat as a OL stat but definitely worth pointing out that there's a trend in lamar's career that the worse the OL is the more sacks he's taken so there's certainly a relationship there between the OL and lamar's sacks even if he's holding onto the ball and bringing some sacks upon himself