You have a problem each time you shave and not otherwise. If your observation is correct then the cause and effect relationship is obvious. You could be having contact dermatitis to the material used for shaving or friction dermatitis. Clinical examination when you develop the problem should be able to differentiate between the two. Change the shaving material. If it does not solve your problem then consult your dermatologist.