Cannot create an instance - Validation Error "input should be a valid string"

Hi,

I am trying to create an instance in TrueNAS SCALE 25.04.1.
I selected Container (Ubuntu Noble), “1” for CPU, “4GB” for memory size, I selected a premade dataset “/mnt/default/plane” with destination “/media”, and clicked Create.

This fails each time I try it, and when I enter the Instances page, I get a popup saying that there were validation errors.
But, no instances are shown, so I cannot delete any of the invalid configurations:

I am running TrueNAS directly on a dedicated server.
Creating Apps works perfectly, no problems there.

The error message with the stack trace is as follows:

 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/api/base/server/ws_handler/rpc.py", line 323, in process_method_call
    result = await method.call(app, params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/api/base/server/method.py", line 49, in call
    return await self._dump_result(app, methodobj, result)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/api/base/server/method.py", line 52, in _dump_result
    return self.middleware.dump_result(self.serviceobj, methodobj, app, result)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 814, in dump_result
    return serialize_result(new_style_returns_model, result, expose_secrets)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/api/base/handler/result.py", line 13, in serialize_result
    return model(result=result).model_dump(
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pydantic/main.py", line 212, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 6 validation errors for VirtInstanceQueryResult
result.list[VirtInstanceQueryResultItem].0.storage_pool
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.9/v/string_type
result.list[VirtInstanceQueryResultItem].1.storage_pool
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.9/v/string_type
result.list[VirtInstanceQueryResultItem].2.storage_pool
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.9/v/string_type
result.list[VirtInstanceQueryResultItem].3.storage_pool
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.9/v/string_type
result.VirtInstanceQueryResultItem
  Input should be a valid dictionary or instance of VirtInstanceQueryResultItem [type=model_type, input_value=[{'id': 'plane', 'name': ..., 'memory': 4294967296}], input_type=list]
    For further information visit https://errors.pydantic.dev/2.9/v/model_type
result.int
  Input should be a valid integer [type=int_type, input_value=[{'id': 'plane', 'name': ..., 'memory': 4294967296}], input_type=list]
    For further information visit https://errors.pydantic.dev/2.9/v/int_type

The error message in the popup says “Validation Error”, with (above “More Info”):

6 validation errors for VirtInstanceQueryResult result.list[VirtInstanceQueryResultItem].0.storage_pool Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.9/v/string_type result.list[VirtInstanceQueryResultItem].1.storage_pool Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.9/v/string_type result.list[VirtInstanceQueryResultItem].2.storage_pool Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.9/v/string_type result.list[VirtInstanceQueryResultItem].3.storage_pool Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.9/v/string_type result.VirtInstanceQueryResultItem Input should be a valid dictionary or instance of VirtInstanceQueryResultItem [type=model_type, input_value=[{'id': 'plane', 'name': ..., 'memory': 4294967296}], input_type=list] For further information visit https://errors.pydantic.dev/2.9/v/model_type result.int Input should be a valid integer [type=int_type, input_value=[{'id': 'plane', 'name': ..., 'memory': 4294967296}], input_type=list] For further information visit https://errors.pydantic.dev/2.9/v/int_type