These might be ice pick headaches, or stabbing headaches.
https://www.webmd.com/migraines-headaches/ice-pick-headaches
https://americanmigrainefoundation.org/resource-library/ice-pick-headaches/
Usually, these aren't serious, but since you have a lump and it's new for you, it's really important that you get it checked by your doctor to rule anything serious out. Don't hesitate in doing this.
Let us know what happens.