Delving into the depths of NGC 3783 with XRISM: III. Birth of an ultrafast outflow during a soft flare