If I choose "dynamic size" for my VDI and put it in my D:\ partition (where I have 40 GB free) everything works fine until about ~85 % into the installation Virtual Box stops and tells me following error

the size of the VDI file is 3,99 Gb at that moment.
If I choose "fixed size" for the VDI (like 15 GB) I cannot create it all (following error) although I have more than enough free disk space.

(I could only create a fixed VDI file smallen than 4 GB)
Does anyone have an explanation?