Hey!
I have this issue in my A5 (2017) [SM-A520F/DS] and I solved it with this folliwing steps:
1) Factory Reset (Setting>General>Restore>Factory Default)
2) Hard Reset (from boot menu)
3) Clear cache data (from boot menu)
4) Start phone without Samsung Cloud backup