The first was a swinging arm and collected the side of the head.
I have no issue with the yellow card for that one the player was going down so it was only a yellow, all good.
The second I thought was not as bad and had it been the first incident may have gotten away with a penalty.
However, it was definitely stupid as he had just seen it called.
I have sympathy for the defenders it is very hard not to infringe against a player going to ground.
In my playing days I was a 6" 2' prop, so a big lump of a lad, and did on occasion run foul of the officiating.
The answer to tackling a player going to ground is simple just temper the desire for a dominating tackle and while it may still be high and draw a penalty that is all it will draw.
I will however say that in my playing days, 80s and 90s, the coach did on occasion say "Remember lads they can't run without a head." Ah, different times.