This argument doesn't obviously apply to gravity (though presumably it would for a quantum theory of gravity), but the equations for gravity (general relativity) give the same result.
At a higher level, it turns out that when you try to combine quantum mechanics with special relativity, the resulting theories are highly constrained. It's not like classical mechanics, where you can just say 'suppose there's a 1/r^12 force.' You get mathematical inconsistencies if you stay too far. Weird stuff
It proves nothing of course. When we speak of these N+T universes, we try to imagine a system that follow the same "fundamental laws" but with different N and T. What exactly is fundamental is up to debate. You can even imagine a system that has different math, but it will be very hard to reason about it.