Hmm, assuming there is no other reverse proxy/WAF/API gateway "in the mix" other than F5 I guess you might need to ask your team if something else changed other than the target server port (from HTTPS on 8154 to HTTP on 8153).
It'll be clearest as to which header(s) might be the culprit if you're able to capture the request as it arrives at GoCD itself (capturing network traffic, possibly, or could
try the stuff here on GoCD side - not sure of how up-to-date it is)
I'm not really super familiar with use of F5 like this, however I imagine there is some kind of rule/scripting required to do the standard proxypass stuff Apache and NGINX do - possibly when editing it for your target port change (server_port in F5 terminology, I think?) something was screwed up on the X-Forwarded-Port rule (using remote_port instead of client_port or something like that)? In this theory, the "random" port is possibly the TCP source port of your browser/curl/whatever rather than the target port the client is connecting to on the LB (443 for a standard https connection).
If there are other network load balancers in the mix, other possibilities can arise where original ports are lost, but since there is no mention of any change in networking setup, I am assuming it's just F5 for now.
-Chad