In this particular Lego arrangement, you'd actually be distributing your weight evenly on multiple points on your feet, thus reducing the pain in comparison to stepping on just one Lego. Like the bed of nails trick
Just wear shoes, don't pick up your feet, and shuffle across the carpet. It'll push all the legos aside. Or you know if you're wearing shoes just step on them.
This is a new extreme of "the floor is lava" game