Both sentences are understandable, but they are not fully natural. Here’s how they can be improved:
1. "I am somewhat pessimistic about the economy next year."
This sentence is natural after adding "the" before "economy" and removing "in" before "next year."
2. "I am somehow pessimistic about the economy next year."
This is grammatically correct but less natural because "somehow" implies uncertainty about the reason, which might not be what you mean. If you’re expressing a moderate level of pessimism, "somewhat" is more appropriate.
Recommendation:
Use the first sentence:
"I am somewhat pessimistic about the economy next year."
It’s clearer and sounds more natural.