The king of energy drinks is in need of a boost.

Monster Beverage Corp. is losing market share, fighting in court with an upstart competitor and trying to stop its biggest partner—Coca-Cola Co.—from releasing an energy version of Coke.

Ramping up the pressure, Keurig Dr Pepper Inc. is now jumping in with an energy drink developed by Lance...