Morningstar controllers have been designed to mount vertically. This is the orientation in which the heatsinks are most effective. Mounting the controller horizontally will reduce its passive cooling efficiency, but the risk of overheating will be determined by the ambient temperature and the power level at which the controller will be operating.  All efforts should be made to mount the controller vertically.