Well not really, there are reasons why he was fine in those stuff.
In Endgame he was fine because he was wearing his armor for most of it but at the end when the Thanos blows up the facility, his armor was damaged where he had to get out of the suit and try to crawl to Rocket.
In Secret Invasion, he wasn’t actually there, it was a Scrull