Armchair speculation below:
I think it is possible in theory, unlikely to be a problem in practice.
Yes, the tinted glass will get hotter. in fact, the ceramic type film will most likely make it worse. More heat rejected from the inside surface of the glass = greater external temperature and thermal expansion.
However, the main issue for cracking is thermal stress from uneven heating. If the surface is heated to the same temperature uniformly there is typically very little stress. BUT, there is a frame and the glass probably extends into the frame about 1/2". Since the film is only applied to the exposed glass... this increases the imbalance of heat distribution and thermal stress.
The total surface area and thickness is a major factor in how much thermal stress can be tolerated. Since the sunroof is pretty small and relatively thick.... I speculate the chances of a crack from adding tint is of little concern.