Not knowing the year of your 5er does not help much, however, the
wipers on the E39 have been plagued with failure, intermittent
operation, slow operation (delay), and so on. It is highly probable
that this is your problem as well. Some years require that two relays
be replaced whilst others only one.