WASHINGTON—President Trump’s rare prime-time speech Wednesday was designed to reassure the nation about his administration’s response to a quickly spreading coronavirus.

Instead, Mr. Trump’s scripted speech included errors about health-insurance payments and European travel restrictions, people involved in the speechwriting said Thursday. He also inserted his own mistakes as he spoke, the people said.

During...