Defect Engineering in Ambipolar Layered Materials for Mode‐Regulable Nociceptor