Could be that the bite is a little high. Might need an adjustment. see the
dentist and have them evaluate the nerve and possibly adjust the bite slightly. If testing shows lingering pain to cold temp stimulus along with pain with percussion tests then it may need root canal treatment.