Documents or Desktop not Staying in Favorites in Finder Mac
Im not sure what is causing this, but you could try force quitting Finder. Go to the Apple icon in the top left corner and select the Force Quit option. A menu will pop up and you can click on Finder to restart it. Also, if you open the Finder preferences you should be able to select which folders appear in the side bar.