Traditional science (rolling balls down inclines, etc.) would all remain perfectly valid even if I'm the only conscious being and the whole world is in my mind. Science experiments still suggest laws to explain how that world in my mind works. (Note, I'm not advocating solipsism, I'm merely refuting your claim that solipsism is inconsistent with science.)
The starting point of all science is "something can be known about the universe beyond my own mind". Without it, there can be no science, nothing to be known or understood. Therefore, science can safely assume that whatever consciousness is (as perceived by the scientist), it's likely shared by other healthy human beings that behave similarly to the observing scientist. It can also make educated guesses about other organisms (or even unhealthy human beings).
> Traditional science (rolling balls down inclines, etc.) would all remain perfectly valid even if I'm the only conscious being and the whole world is in my mind.
I don't think so. If the external universe is a completely whimsical figment of your imagination, you can infer nothing from it, and no experiment is meaningful. Your starting point must be to assume the universe outside your mind is real.
I think this is more of a philosophical thought experiment than a scientific one. It's true that it's hard to define what consciousness even is, but I'm pretty sure the working hypothesis is that whatever it is, both you and I have it. Scientists do not work under the assumption that anyone could be a philosophical zombie, because that's not a productive stance; no science -- as a meaningful social human enterprise -- can be conducted from a position of complete solipsism. Similarly, scientists do not think "well, I cannot prove other people exist outside my mind"; that's an unproductive stance, outside the realm of scientific thought.