Hyper Metal Sonic met his end by letting go of Sonic's hand and falling into a pit of lava.
There's an interesting parallel to be drawn here, since his fate mirrors Anakin Skywalker's fall into a lava pit in Star Wars, though notably Anakin survived his. Hyper Metal Sonic wasn't quite so lucky.