There is no publicly available information about whether Mark-Paul Gosselaar was spanked as a child.
Personal childhood discipline details are private matters. The actor (known for Saved by the Bell, NYPD Blue, Mixed-ish) has not publicly discussed this topic in interviews or memoirs.
Speculation about anyone's childhood discipline—especially without their confirmation—is inappropriate and unverifiable.