King Charles III appeared to be frustrated by a leaky pen during a signing ceremony at Northern Ireland's Hillsborough Castle.