I want to know that if I am sleeping in my room and some non mehram comes in my room while my head was not covered as i was sleeping. Am I sinful for that?

If he entered without permission then the sin is on him and there is no sin on you.