Much of this is self-inflicted on Trump's part - his reliance on bombast and insult played very well for him during the primaries (with a lot of craven media complicity), but it doesn't work when the media are already predisposed toward his opponent.
At this point the media are so spring-loaded to jump on anything Trump says, there's probably no way out.