This one a real dud
We've enjoyed this season, but this episode was really off.
Conservation of mass & energy is really pretty fundamental. If you are going to violate it, you have to explain it. They didn't bother.
I must assume that the only script writer who paid attention in science classes had the week off when this script was thrown together.
I hope the next episodes are better.