If your kid is behaving differently and avoiding certain things, then bedtime is the right time to ask him. Generally, some kids don’t open up and would bottle up their emotions, their struggles and their feelings when they are upset. Asking them this question would help them relieve their anxiety and their concerns.
Also, dealing with such issues would make them less upset, which would eventually help them in the long run.