First, remove enough drywall so the trim can span the jamb and wall without rocking. This solves half the problem. But a ...