Ideally new architraves should be scribed to the wall and fitted so there in no gap.
Other option is to use a small quad or tri profile timber moulding that will bend to the profile of the wall.
As this is primarily an Australian based forum, products available locally may be known by different terms.
Welcome