It is quite hard to sleep upright because sleeping takes you to a state where your muscles are in a state of temporary partial paralysis. This could make it quite difficult for your spine to hold an upright posture. But, if you are sleeping in an ergonomic chair, then, it's okay because these chairs can hold the proper body posture without you having put in any effort.