A. Before updating the app, make a note of all the songs you have downloaded. After the update, check if the songs are still available in your library. If not, you can re-download them manually.
B. Consider backing up your downloaded songs by exporting them to a different music app or service that allows for local storage, so you can easily restore them if they are lost.