Hi, @Łukasz Świątkowski
Thank you for posting in Microsoft Q&A forum.
It seems we need to reinstall WSUS to see if it helps:
https://www.reddit.com/r/SCCM/comments/k2tlcr/sccm_wsus_changing_update_source/
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".