The following assumes you have already nicely raised this issue to your boss, and that you inform them when you are done your tasks and ask them for something else to do and those requests go unheeded. If not, that would be the first thing to do: When you are done your 2-hour task, send your boss a message and ask them if there's anything else you can pick up that needs doing. It may be possible your boss doesn't realize how idle you are. Failing that, continue reading on:
Sounds like you may have been sidelined. I had a couple similar situations early in my career where I was working for large tech companies (one of them being a FAANG) and despite working for a long time (a year in each case), I wasn't being given anything interesting to do, or I was doing meaningless changes to legacy code. The first of those companies I ended up quitting out of boredom (and other unrelated reasons), the second I was terminated.
The real problem here is not that you are doing nothing; being paid for doing nothing is, after all, still being paid. The problem is you're not advancing yourself in terms of portfolio, experience, or knowledge. If you work at this company forever and just do nothing forever and collect a salary, that's great, but more realistically what will happen is you will leave this company (or be fired) and you will have to interview elsewhere. Then, in an interview, your interviewer will ask you about your experience for the last 8 months at this company and you will say "I did nothing, I just worked for 2 hours a day on some menial tasks and did nothing for the other 6 hours". That's not going to fly well.
So here's what you do:
Talk to your boss and let them know about this problem, that you feel you're being underutilized and ask them to do something about it, put you on some project or something. They will probably say something like "we have no projects right now, but I promise you'll get the next one" or "we have something coming up" or "we value the work you're already doing, just keep it up". Unless they promise to do something actionable on an immediate basis, just ignore everything they said as if it's BS, because it probably is. If your manager does promise something actionable, then follow up in the short term to make sure their promise is being kept. If you have any indication whatsoever that the promise is not being kept, then:
Start searching for a new job. You should do this within about a week of your meeting with your boss if nothing changes (not promise of a change, not "it's coming I promise", but actual meaningful change to your duties). The longer you let this go on, the more time you'll have to account for in your interview at your next company as to why you're doing nothing. 8 months is already a lot, but it's "reasonable" at least; you don't want to let this keep going too much longer though or you'll start having a real problem, and take it from me who has over 2 years of this on my resume (across 2 companies) and had to deal with it in interviews (I made this mistake, don't make the same mistake I did). In the meantime, you are currently employed, so you can keep collecting a paycheque and don't have to job hunt while unemployed (I made this mistake too, don't do what I did, it's not fun).
You can always pull out of a job hunt if your work situation changes. It's much easier to do that, than to start job hunting when you're unemployed, or to extend this 8 months of nothing into a year or more that you have to account for in interviews. The sooner you get this situation fixed, the better, so get it fixed ASAP.