Scotland's benefits agency overpaid claimants £14.25 million last year and saw its own operating costs rocket.