Xperia 10 ii - Unable to Flash Sailfish X

It is a common issue, last seen here Flashing of Xperia 10 II fails - getvar secure: FAILED

You can try the getvar commands manually, if they only work intermittently, you are indeed hitting that issue. Try a port under another USB controller, preferably USB2, or a hub.

It just reads a variable from the bootloader config. I assume secure means locked.