Sometimes and engine sitting in an enclosed environment will sort of "heat-soak" itself (Actually the thermostat is the culprit), and cause trouble until it full cools down.
We've seen that on Can Am Spyders for years.
Let things get some air on them, and it all goes back to normal quickly!