Had this error with Beta 3. Did the command line and it worked. Now Beta 4 comes along and neither works. Command line fails within 10 seconds.
Finding available software
Downloading macOS Monterey 12 Beta 4
2021-07-29 17:35:22.943 softwareupdate[45227:382232] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[4]'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff814cce24b __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff814a33b9d objc_exception_throw + 48
2 CoreFoundation 0x00007ff814d876b0 _CFThrowFormattedException + 202
3 CoreFoundation 0x00007ff814d91e81 -[__NSPlaceholderDictionary initWithCapacity:].cold.1 + 0
4 CoreFoundation 0x00007ff814bdc712 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 251
5 CoreFoundation 0x00007ff814bdc5fd +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 softwareupdate 0x00000001063dc04f softwareupdate + 28751
7 softwareupdate 0x00000001063d7a08 softwareupdate + 10760
8 dyld 0x000000010b04a4d5 start + 421
9 ??? 0x0000000000000000 0x0 + 0
10 softwareupdate 0x00000001063d5000 __dso_handle + 0
)
libc++abi: terminating with uncaught exception of type NSException
zsh: abort sudo softwareupdate -i -a -R