Hi, this may not apply to your Onan code 45 specifically, but if you scan down the attached hyperlink there is an entry that describes three typical issues that may cause the code 45......of course the described checks/fixes may not apply unless you have the same generator described. Its a start though (no pun intended).
2003 5.5K Onan Generator Code 45 - iRV2 Forums