I found the cause. SensorKit cannot send fetch requests when the user's device is locked. (That’s probably why the error occurred.)
Therefore, it is possible to send fetch requests for SensorKit data in the background, but the device must be unlocked.
If my solution is incorrect, please let me know.