I think the crash happens because you are supplying input to the function. When I additionally set (see here)
opts.read.datacheck = 1;
to make CPLEX explicitly check the input, then I get an error
Error: bineq has incompatible dimensions
And indeed, in your input bineq is a row vector but should be a column vector. Fixing this to be ones(n,1) I get the next error:
Error: H not a valid H matrix
To specify an empty matrix you need to use [], not 0.
CPLEX by default does not check for all sorts of invalid input you can pass into the functions. If you want it to check everything then you have to set the data check parameter (as I did above).
#CPLEXOptimizers#DecisionOptimization