Welcome to e health forum.
Yes, abnormal sleeping positions , with elevated leg positions can cause increased blood flow to the head and hence can result in headache or congested eyes.
Having proper sleep hygiene and sleeping in normal position should be enough, to relieve all your issues.