I suspect you mean a mechanical protection so that it is not possible to bend the PINs or otherwise mechanically damage them?
There are certainly an extremely large number of adhesives or epoxy resins with which you can do this. But you have to be aware that all of these materials have different coefficients of expansion. In the case of high thermal loads, this can also have negative effects.
If you still want to do it, then I would recommend something like this to you. This is not so much for mechanical protection, but against corrosion or moisture:
https://www.eve.de/crc-kontakt-chemie-plastik … 3-74313-aa.html
(sorry, Website is in german, it's a kind of liquid "plastic", it can be applied in multiple layers over the whole PCB)
We used this to insulate normal circuit boards against condensation and it worked quite well, no returns.
This is just my personal opinion:
Please don't do that. You are blocking everything that could ever be done to save the hardware from other issues.
jm2c 😉