It's happened to me before, and I think it dripped on my ecu, causing it freak out above ~4500 rpm. [edit: had to clean the connector block terminals really good, that's when I discovered the oil]
I replaced the speedo cog and the problem went away. Maybe you just need to make sure the o-ring seal is good.
Hope this helps...