Hello ma'm,
You might be having deep cavity & the most sensitive layer of the tooth 'Pulp' is affected causing build up of intra pulpal pressure while lying down , which requires clinical examination & investigations for ruling out exact diagnosis & treatment planning accordingly.
Next Steps
visit dentist for the same.
Health Tips
maintenance of oral hygiene is important for overall health.
Thanks!