Well, generally if the opponent has a few pieces left and you have a significant advantage in material, you should probably start thinking about checkmating your opponent, to avoid this kind of situation. If he still has only king left, the easiest way to avoid it is to keep checking the king until you are able to checkmate.
Stalemate rule has a big purpose in lot of endgames. It makes the game richer because material would mean almost everything otherwise. For instance, there are many 1 pawn up endgames that are draws, but they rely on stalemate rule.
There are games where the side with less material sets up an elaborate trap where for instance it will either be a stalemate or a draw by repetition. Along with that, a person with equal material might be lower on time and content with a draw and see a resource where he sacrifices material, but it leads to a stalemate which is what he wanted in the first place.
I hope someone will provide you with examples.
Stalemate rule, any examples of this happening in big matches filmed.

Started playing this week and the stalemate rule seems unreasonably harsh when you have plenty of pieces and they only have king left then fumble a draw, keeps catching me out.
Any examples when this has happened on the big stage, is it ever possible to force from losing position with only king left or is it entirely down to error.
Cheers
Sometimes, two's a party but three's a crowd.
It does make the winning player feel unjustified (as is the case for many players who feel that they are robbed of a "rightful" win), but it's there for reasons. The stalemate rule enriches chess in more ways than just simply the difference between a full point and a half point.

https://www.chessgames.com/perl/chesscollection?cid=1001696
Especially check out Congdon-Delmar and Tartakower-Reti

I started playing this he yesterday and two times in a row I almost beat the A.I until it called stalemate? I had plenty of pieces left and it had 4 - 5 pieces left. Any idea why it's doing this? :blunder

I started playing this he yesterday and two times in a row I almost beat the A.I until it called stalemate? I had plenty of pieces left and it had 4 - 5 pieces left. Any idea why it's doing this? :blunder
https://en.wikipedia.org/wiki/Stalemate
Basically opponent has no legal moves to play and his king is not in check. That is stalemate, AKA a draw.
You would have to show the exact position for me to be sure that was a stalemate in your game, because it could be a draw by 3 fold repetition as well for instance. Not every type of a draw is called a stalemate.
Started playing this week and the stalemate rule seems unreasonably harsh when you have plenty of pieces and they only have king left then fumble a draw, keeps catching me out.
Any examples when this has happened on the big stage, is it ever possible to force from losing position with only king left or is it entirely down to error.
Cheers