Some Scottish Power customers will receive an average of nearly £300 after being overcharged.