This issue occurs due to Apple has depreciated support for FTP and File based PAC file deployments in macOS 10.15 and above. [HTTP and HTTPS are the only supported URL schemes for PAC].
For more information, refer to Apple Developer Notes at
https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_release_notes