It looks like Allwinner doesn't handle camera2 apps well.
The Allwinner firmware is returning null for the focal-length key in its Camera1 parameters. Float.parseFloat(null) eventually calls FloatingDecimal.readJavaFormatString(null), which attempts to call .trim() on the null string, resulting in the NullPointerException.
And unfortunately the crash is thrown in the camera framework layer when getting the CameraCharacteristics, so there is nothing we can do about it.
Maybe try other cameras? Since camera id "2" causes the problem, other "0" and "1" might work. What's your CameraSelector configuration?