Step one. Test oil pressure.
If you don’t have a pressure gauge to test with, just spend your money on an oil pressure sending unit. Chances are it’s just a bad sender.
When you say running erratic, was this accompanied with a check engine light, with VVT codes?