This happened because your windows has run out of space.
If you get this error follow the below steps
Make sure you have 2 to 3GB of free space on your harddisk or ssd
- Go to start menu and search for “Services“. Open it
- Scroll down to select “Storage Service“
- Right click “Storage Service” and select “Stop“
- Then right click again to select “Restart”
- Now open the xbox app and it should work.