As the error message claims apparently the number of out_channels is not divisible by groups.
Looking at the code I guess that the first conv layer in DoubleConv might create the issue, if mid_channels is not divisible by in_channels. Could you check it and adapt the number of channels accordingly?