Photoshop pencil changes to eraser


This didn’t used to hppen but the photoshop pencil will spontaneously change to an eraser. It is very distressing, but I can’t find a way to turn it off. The Adobe forums had lots of incorrect ideas and no solutions, so I’m reaching out here hoping someone knows. Thanks.