Yes they are both dangling structures and to me they both sound fine as you can prove both subjects of the main sentences wrong, i.e.
- you can prove "astronomers" incorrect in their assumptions.
- you can prove " an assumption" incorrect.
I would prefer the second one though. I think it reads better.
I hope it helps.