There is a problem when you use a quote to imply or support something the original text never intended. That's pulling it out of context.
The only way to properly quote James 1:5 is when you're going through a trial or you're trying to encourage someone who's going through a trial to ask God for wisdom to persevere. Why? So we may be mature and complete, not lacking anything such as wisdom do endure trials.
You haven't even give your view of what v5-8 mean as a contrast so it's kinda hard to see what you are complaining about. I'm just saying it means what it says.
It only means what it says in the proper context. My view should be obvious from things previously said, including the satirical "Grig method of hermeneutics."
But if it's not obvious, here's a refresher with added notes:
James writes to "the twelve tribes" and given the Jewish nature of the letter, the intended audience would be Jewish Christians. In verse 2-3 James said to consider it pure joy when the Jewish Christians faced trials and temptations. The same root word for trials in verse 2 is also used for tempted in verse 13.
Verse 4 tells us the Jewish Christians should be mature and complete, not lacking anything including wisdom, but to get mature and complete, they should persevere through their trials and temptations. If they lacked the wisdom to endure the trial, James instructs them to ask God for the needed wisdom in verse 5.
Verse 6 tells the intended audience to believe and not doubt when they ask for wisdom to endure the trial and verses 7-8 goes on to explain why this is important.
Verses 9-11 list trials of the rich and poor, and yes even the rich have trials, one of which could be losing their wealth (verse 11).
In verse 12 James reminds the Jewish Christians they will be blessed if they persevere under trial.
That's a short view of my position on James 1-12. There is so much more, so many other little nuggets in there that I don't have the time to get into.