Anomalous relaxation near dynamical transitions under the presence of energetic disorder