Help! All of my WiFi passwords have disappeared!

Can anyone help me? Yesterday my Galaxy S11 (using Android 4.04) just 'forgot' every single WiFi password I have on my phone and stopped logging in automatically to the networks. Instead I've had to manually re-enter the passwords for my home, work and girlfriends place.

The problem is that there are some passwords I won't be able to retrieve at all.