Going on the trend of Accessibility Act in the EU, we will have soon a new Directive for Liability for Defective Products.
The directive is not yet in the legislation (adoption/agreement in progress since several years), but could be in 2025.
The entry into force is 24 months from the publication.
https://data.consilium.europa.eu/doc/document/PE-7-2024-INIT/en/pdf
Source for the news/link, is a post on Linkedin from Jon Bach.
The current version in use is from 1985 with some updates in 1999:
https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A01985L0374-19990604
The new one will be specifically more precise on Software.
“Directive should clarify that personal injury includes medically recognised and medically certified damage to psychological health that affects the victim’s general state of health and could require therapy or medical treatment, taking into account, inter alia, the International Classification of Diseases of the World Health Organization”
" Member States should provide for full and proper compensation for all material losses resulting from death or personal injury, or from damage to or destruction of property, and destruction or corruption of data"
“Types of damage other than those provided for in this Directive, such as pure economic loss, privacy infringements or discrimination, should not by themselves trigger liability under this Directive.”