This interaction turns up regularly in competitive games:
Q: My Wellspring Mask Ogerpon ex has a Sparkling Crystal attached and only one Double Turbo Energy on it. If I use its “Torrential Pump” attack, can I shuffle the Double Turbo Energy back into the deck and do damage to a benched Pokemon?
A: Yes, this is a case of doing as much as you can. You would get to do the bench damage even though you can’t detach 3 energy, but you must shuffle in SOME energy in order to get the bonus. You shuffle the two energy that are attached back into the deck, and do 80 to the active and 100 to the bench (remember, damage is still reduced for the DTE since the detachment happens after damage is done).
(Note: the example above uses Sparkling Crystal + Double Turbo Energy, but would also apply for Sparkling Crystal + any 2 Basic Energy.)
Basically, if Wellspring Mask Ogerpon ex has Sparkling Crystal and 2 Energy attached, it should have the option of shuffling both Energy into the deck to also do 120 damage to a Benched Pokémon. Right now it does not.
The important thing is that at least 1 Energy gets shuffled in, so as an additional test case, if Mime Jr. with no Energy attached uses Mimed Games and the opponent lets you copy Torrential Pump, you cannot get the Bench snipe.