The No. 8 Terps struggled protecting the ball and running a productive offense before rallying for an 82-74 win against visiting Miami on Thursday night at the Xfinity Center as part of the Big Ten/ACC Challenge.