The correct answer is: D. carelessness

Carelessness is the lack of attention or concern. It can lead to accidents, injuries, and other problems. In the context of the question, the accident occurred because the person was not paying attention to what they were doing. This could have been due to a number of factors, such as being distracted, being in a hurry, or simply not being careful.

The other options are not as likely to be the cause of an accident. Haste is the act of doing something quickly, but without care. Error is a mistake. Ignorance is a lack of knowledge. While these things can all contribute to accidents, they are not as likely to be the sole cause.

In conclusion, the correct answer to the question "The accident occurred due to his lapse" is D. carelessness.