Where does the PID value come from in the event self-cancellation link?
I believe PID is the participant ID registered of an event. This is the primary id from civicrm_participant table. 

HTH

Pradeep