Selection of error probability laws by generalized modified profile likelihood