As was already stated by others, what you experienced is essentially an engine stall. That situation does not harm the pistons or piston rings.
I’m actually curious as to why you are worried about those parts, rather than–let’s say–the rod bearings and main bearings. Those parts aren’t harmed/damaged by an engine stall either, but I’m wondering why you are focusing on just the pistons and piston rings.