How much sleep we need totally varies from person to person; it all depends on our genetics, age and what’s going on inside. Trying to rally through an illness is only going to perpetuate feeling rubbish, so let go of the guilt if you’re unwell - your body needs to sleep to regenerate and heal.
In a nutshell, if you do visit the doctor for whatever reason, talking about your sleep quality may just be the missing piece of the jigsaw that they need to diagnose you accurately, so don’t hold back and make sure you talk about your sleep quality as an aside to the reason you’re visiting them.
Your doctor can prescribe you medication for sleep, but be wary because it can be highly addictive, and without the support of your doctor, very difficult to ditch. You may be referred to an NLP (Neuro Linguistic Practitioner), which is a more holistic approach to working at an unconscious level to release the effects of past negative experiences. If you believe that trauma, stress or anxiety is your key sleep inhibitor, don’t be afraid to float this idea past your GP if they don’t suggest it to you.