Most teams I’ve been in would do a time boxed task (sometimes referred to as a spike) in those cases. Basically, you get a task with maybe 3 or 5 story points, and the goal is to either complete it or find out what it takes to do so. Then you make follow-up tasks for the next sprint. It’s worked pretty well for me in those cases with a lot of uncertainty.
Most teams I’ve been in would do a time boxed task (sometimes referred to as a spike) in those cases. Basically, you get a task with maybe 3 or 5 story points, and the goal is to either complete it or find out what it takes to do so. Then you make follow-up tasks for the next sprint. It’s worked pretty well for me in those cases with a lot of uncertainty.