The roborio spec says local ambient temperature limit is 40C (104F); that's pretty standard for electronics.
https://decibel.ni.com/content/servl...ifications.pdf
A small fan to provide some nominal air exchange should be fine. "Enclosed" can mean a lot of things, you'll want some vent holes for cross flow so that you're actually moving all the air with no dead spaces.