I don't think the symptom of neck pain
you are experiencing is due to tonsillitis
. The neck pain you are experiencing is due to wrong neck position during sleep. Usually, tonsillitis will cause throat pain, soreness in throat, difficulty in swallowing and so on.
Just take some analgesics and anti inflammatory agents like Paracetamol
, which will relieve your symptoms.