I'd never have a garden bed against the house wall without a physical barrier otherwise your always going to have issues.
...sleeper, cement sheeting and/or builders plastic. Generally any of these will last many years before maintenance is required.
Here are some tips.
https://flourishingplants.com/protec...-and-moisture/