Understood, but realize if you follow the instructions- these ports are specific and there should be no issue if your opening just these and have firewall and other security protocols to monitor the ports. I had same concerns as well- but your ok.
Also UDP and TCP have diff functions. You can read more about them here.
https://www.bleepingcomputer.com/tutorials/tcp-and-udp-ports-explained/
These ports your opening are not random and must be done to ensure data nodes and service are available in the Sia Network (at least at the time of this writing). I wouldnt venture much has changed since- but check their Discord out just to be sure. Good luck!