The attacks come as even some Republicans want the president not to talk about the 2020 election and instead focus on this year’s midterms