Try replacing wp_redirect with wp_safe_redirect and if you have php closing tag “?>” at end of files, remove them, at least you can check the header.php for php closing tag.
Try replacing wp_redirect with wp_safe_redirect and if you have php closing tag “?>” at end of files, remove them, at least you can check the header.php for php closing tag.