I can’t seem to replicate the issue. It works fine for me when I upload.
Is the link in your WP admin called “Custom Header” or just “Header”?
Also, does the image that you’re uploading match the exact size as what is featured in your functions file?