Defender breaks website by adding code for Apache 2.2 instead of Apache 2.4


When I try to do extra security tweaks the website breaks with an internal server error 500 because WP Defender Pro adds code for Apache 2.2 instead of 2.4.

Seems like Prevent Information Disclosure or Prevent PHP execution broke it.

Hosting provider used the following example:

Any way Defender could detect this and add the right code or an option to add the code for 2.4?