Heavy dark matter and gravitational waves