The Star Wars actor apologised and deleted the post, which contained an AI image of the president in a shallow grave.
The Star Wars legend says Ukraine's president referenced the films when he spoke to him.
The script was part of an auction of 600 items belonging to Darth Vader actor Dave Prowse.