Per What's new in h5py 3.10?:
The read-only S3 file driver (‘ros3’) now accepts an AWS session token as part of the credentials (PR 2301). Pass session_token when opening a File (along with the other S3 parameters). This requires HDF5 1.14.2 or later, with the ROS3 feature built.
Please update the ROS3 driver to support providing a session token. Without this, it is impossible to use the driver for short-term credentials.